package tgc.tdu.tgq.demo.security;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

//凭证

public class User2 extends User  {
	private static final long serivalVersionUID=1L;
	//往凭证中插入真实姓名
	private String name;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name=name;
	}
	
	public User2(String username,String password,String name,Collection<? extends GrantedAuthority> authorities) {
		super(username,password,authorities);
		this.name=name;
	}
	

}
